Random graph theory of gelation